// 复制功能模块
var fs = require("fs");
/**
 * @param {*读取的文件路径} readSrc 
 * @param {*写入的文件路径} writeSrc 
 */
module.exports = function (readSrc, writeSrc) {
  fs.readFile(readSrc, "utf-8", function (err, data) {
    if (err) throw err;
    fs.writeFile(writeSrc, data, function (err) {
      if (err) throw err;
      console.log("复制成功")
    })
  })
}
